//
//  main.c
//  复习
//
//  Created by apple on 2016/12/26.
//  Copyright © 2016年 apple. All rights reserved.
//

#include <stdio.h>

enum Color
{
    red,yellow,blue,white
};
void ShowColor(enum Color color);
int main(){
    int i,j,k,count=0;
    enum Color color_i,color_j,color_k;
    for (i=0; i<4; i++) {
        color_i=(enum Color)i;
        for (j=0; j<4; j++) {
            color_j=(enum Color)j;
            if (color_i!=color_j) {
                for (k=0; k<4; k++) {
                color_k=(enum Color)k;
                if (color_k!=color_i&&color_k!=color_j) {
                    printf("%-6d",++count);
                    ShowColor(color_i);
                    ShowColor(color_j);
                    ShowColor(color_k);
                    printf("\n");
                }
            }
         }
        }
    }
    return 0;
}
void ShowColor(enum Color color)
{
    switch (color) {
        case red:
            printf("%-10s","red");
            break;
        case yellow:
            printf("%-10s","yellow");
            break;
        case blue:
            printf("%-10s","blue");
        default: white:
            printf("%-10s","white");
            break;
    }
}
